<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			var str = "today is monday";
			var reg = /mon/;
			var result = str.match(reg);
			console.log(result);
			//
			var reg = /[0-9]+/g;
			var str = "2015-3-23";
			var result = str.match(reg);
			console.log(result);
			//
			var reg = /[a-zA-Z0-9_-]+/;
			var str = "$%#@^afe_hello";
			var result = str.match(reg);
			console.log(result);
			//
			var reg = /go*gle/
			var str = "ggle";
			var result = str.match(reg);
			console.log(result);
			//
			var reg = /wo?rld/;
			/*var str = "wrld";
			var str = "world";*/
			var str = "wowoworld";
			var result = str.match(reg);
			console.log(result);
			//
			var reg = /.*/
			var str = "^fakmf#efwr#mfsk$fgmr\nemkfy*"
			var result = str.match(reg);
			console.log(result);
			//
			var reg = /milk|fish/g;
			var str = "cat like eat fish and milk";
			var result = str.match(reg);
			console.log(result);
			//
			var reg = /^\w{5,10}$/
			var str = "esfeeo 56"
			var result = str.match(reg);
			console.log(result);
		</script>
	</head>
	<body>
	</body>
</html>
